home *** CD-ROM | disk | FTP | other *** search
- # Source Generated with Decompyle++
- # File: in.pyc (Python 2.6)
-
- from checkbox.lib.environ import add_variable
- from checkbox.properties import String
- from checkbox.plugin import Plugin
-
- class ProxyInfo(Plugin):
- http_proxy = String(required = False)
- https_proxy = String(required = False)
-
- def register(self, manager):
- super(ProxyInfo, self).register(manager)
- self._manager.reactor.call_on('gather', self.gather, -1000)
-
-
- def gather(self):
- if self.http_proxy:
- add_variable('http_proxy', self.http_proxy)
-
- if self.https_proxy:
- add_variable('https_proxy', self.https_proxy)
-
-
-
- factory = ProxyInfo
-